//
//  CookClassModel.m
//  Products_B
//
//  Created by lanou on 16/5/28.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "CookClassModel.h"

@implementation CookClassModel

// 将解析出来的字典中的数据赋值给model
+ (NSMutableArray *)cookClassModelAnalyseDataWithJsonDic:(NSDictionary *)jsonDic {
    NSMutableArray *modelArray = [NSMutableArray array];
    NSArray *dataArray = jsonDic[@"data"][@"data"];
        for (NSDictionary *dic in dataArray) {
            CookClassModel *model = [[CookClassModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [modelArray addObject:model];
        }
        return modelArray;
}

@end
